//
//  ListCell.m
//  ABCDEFG
//
//  Created by Xue Senhong on 15/5/21.
//  Copyright (c) 2015年 薛森鸿. All rights reserved.
//

#import "ListCell.h"

@implementation ListCell
- (void)dealloc
{
    [_listImage release];
    [_nameLabel release];
    [_priceLabel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.listImage = [[UIImageView alloc] initWithFrame:CGRectMake( kScreenWidth * 25 / 375 ,  kScreenHeight * 15 / 675 ,  kScreenWidth * 85 / 375 , kScreenHeight * 60 / 667)];
        [self.contentView addSubview:self.listImage];
        [self.listImage release];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth * 110 / 375, kScreenHeight * 15 / 667, kScreenWidth * 200 / 375, kScreenHeight * 20 / 667)];
        [self.contentView addSubview:self.nameLabel];
        self.nameLabel.font = [UIFont systemFontOfSize:16];
        [self.nameLabel release];
        
        self.priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth * 110 / 375, kScreenHeight * 50 / 667, kScreenWidth * 200 / 375, kScreenHeight * 20 / 667)];
        [self.contentView addSubview:self.priceLabel];
        self.priceLabel.textColor = [UIColor redColor];
        self.priceLabel.font = [UIFont systemFontOfSize:15];
        [self.priceLabel release];
    }
    return self;
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
